projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c520265
)
(make-frame-on-display): Check for nonsense display name.
author
Richard M. Stallman
<rms@gnu.org>
Mon, 25 May 1998 07:18:31 +0000
(07:18 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Mon, 25 May 1998 07:18:31 +0000
(07:18 +0000)
lisp/frame.el
patch
|
blob
|
history
diff --git
a/lisp/frame.el
b/lisp/frame.el
index 326677339aecfe24209cde994c141f51c89a4e8d..b6fcf8ab7fea129184dbe8e4b809bda710c43f57 100644
(file)
--- a/
lisp/frame.el
+++ b/
lisp/frame.el
@@
-414,6
+414,8
@@
These supersede the values given in `default-frame-alist'."
"Make a frame on display DISPLAY.
The optional second argument PARAMETERS specifies additional frame parameters."
(interactive "sMake frame on display: ")
+ (or (string-match "\\`[^:]+:[0-9]+\\(:[0-9]+\\)?\\'" display)
+ (error "Invalid display, not HOST:SERVER or HOST:SERVER:SCREEN"))
(make-frame (cons (cons 'display display) parameters)))
(defun make-frame-command ()